//
//  CoursesSearchViewController.h
//  classroom
//
//  Created by apple on 12-10-28.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ChooseView.h"
#import "CourseInformationViewController.h"

@interface CoursesSearchViewController : UIViewController<UITableViewDataSource,UITableViewDelegate,ChooseViewDelegate>

@property(retain,nonatomic)NSMutableDictionary* resultDic;//存放服务器返回的所有数据的字典


@property(retain,nonatomic)NSMutableArray* typeArray; //类型 下拉列表
@property(retain,nonatomic)NSMutableArray* priceArray;//价格 下拉列表
@property(retain,nonatomic)NSMutableArray* areaArray; //地区 下拉列表
@property(retain,nonatomic)NSMutableArray* courseResultArray; //课程数据
@property(assign,nonatomic)int searchCondition;  //搜索条件
@property(assign,nonatomic)NSMutableDictionary* searchConditionDic;//存放搜索条件的字典

@property (retain, nonatomic)UITableView *searchtableView;

@property (retain,nonatomic) UIActivityIndicatorView *waitIndicatorView;//activityIndicatorView
@property (retain,nonatomic) UILabel *loadinglabel; //loading等待

@property (nonatomic,strong) CourseInformationViewController *courseInformationViewController;

//-(void)requestDate:(NSString *)urlString;//向服务器请求数据
-(void)requestDate;//向服务器请求数据

-(NSString *)geturlString;//由用户从下拉列表选择的条件，生成url ，供请求数据使用

-(void)setPullDownMenus;//初始化下拉列表

-(void)setCourseArray;// 设置课程列表，array中的值为字典
-(void)setConditionDic:(NSString *)value forkey:(NSString *)key;//设置搜索条件 
-(void)popoverViewSelect;

//翻页问题需要解决201212009
- (IBAction)nextPageButtonPressed:(UIButton *)sender;//下一页按钮点击
- (IBAction)lastPageButtonPressed:(UIButton *)sender;//上一页按钮点击
@end
